<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    const xhr = new XMLHttpRequest()
    // loadstart:请求开始
    // progress:请求过程中
    // abort:请求中断
    // error:请求失败
    // load:请求结束
    // timeout:请求超时
    // loadend:请求结束
    xhr.onreadystatechange = function () { }
    xhr.onload = function () {
      console.log('onload')
    }
    xhr.open('get', 'http://123.207.32.32:8000/home/multidata')
    xhr.send()
  </script>
</body>

</html>